package com.core.life.entity;

import static javax.persistence.GenerationType.IDENTITY;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 转账关系实体类
 *
 */
@Entity
@Table(name="t_accounting_relations")
public class AccountingRelationsEntity implements Serializable{

	/**   */
	private static final long serialVersionUID = 1L;
	
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	private Long id;
	
	@Column(name = "consumeRecordId", nullable = false)
	private Long consumeRecordId;
	
	/** 转账人  */
	@Column(name = "sourceUserId", nullable = false)
	private Long sourceUserId;
	
	/** 接收人  */
	@Column(name = "targetUserId", nullable = false)
	private Long targetUserId;
	
	/** 转账金额  */
	@Column(name = "payMoney", nullable = false)
	private Float payMoney;

	@Column(name = "year", nullable = true)
	private Integer year;
	
	@Column(name = "month", nullable = true)
	private Integer month;
	
	@Column(name = "day", nullable = true)
	private Integer day;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getConsumeRecordId() {
		return consumeRecordId;
	}

	public void setConsumeRecordId(Long consumeRecordId) {
		this.consumeRecordId = consumeRecordId;
	}

	public Long getSourceUserId() {
		return sourceUserId;
	}

	public void setSourceUserId(Long sourceUserId) {
		this.sourceUserId = sourceUserId;
	}

	public Long getTargetUserId() {
		return targetUserId;
	}

	public void setTargetUserId(Long targetUserId) {
		this.targetUserId = targetUserId;
	}

	public Float getPayMoney() {
		return payMoney;
	}

	public void setPayMoney(Float payMoney) {
		this.payMoney = payMoney;
	}

	public Integer getYear() {
		return year;
	}

	public void setYear(Integer year) {
		this.year = year;
	}

	public Integer getMonth() {
		return month;
	}

	public void setMonth(Integer month) {
		this.month = month;
	}

	public Integer getDay() {
		return day;
	}

	public void setDay(Integer day) {
		this.day = day;
	}
	
	
}
